﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NRCP.BusinessEntities;

namespace NRCP.BusinessLogicLayer
{
    public partial class DivisionBLL
    {
        public Division GetDivisionBySelections(Func<Division, bool> query)
        {
            try
            {
                //CustomerContent
                Division result = _socialShareDatabaseContext.Divisions.FirstOrDefault(query);
                return result;
            }
            //handling other exceptions...
            catch (Exception ex)
            {
                //Error handling
                throw ex;
            }
        }
    }
}